package com.ego.service.impl;

import com.ego.commons.pojo.EasyUITree;
import com.ego.dubbo.service.TBItemCatDubboService;
import com.ego.service.TbItemCatService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TBItemCatServiceImpl implements TbItemCatService {


    @DubboReference
    private TBItemCatDubboService tbItemCatDubboService;

    @Override
    public List<EasyUITree> selectTreeByParentId(long parentId) {
        return tbItemCatDubboService.selectItemCatByParentId(parentId);
    }
}
